package com.bdk.middle.supplier.core.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 * 供应单
 * @author Reagan
 * @since 2021-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("e_supplier")
public class SupplierEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * 应用id
     */
    @TableField("app_id")
    private String appId;
    /**
     * 订单id
     */
    @TableField("order_id")
    private String orderId;
    /**
     * 订单编号
     */
    @TableField("order_no")
    private String orderNo;
    /**
     * 供应单号
     */
    @TableField("supplier_no")
    private String supplierNo;
    /**
     * 交易号
     */
    @TableField("transaction_no")
    private String transactionNo;
    /**
     * 供应商名称
     */
    @TableField("supplier_name")
    private String supplierName;
    /**
     * 供应商的id
     */
    @TableField("merchant_id")
    private String merchantId;
    /**
     * 总金额
     */
    @TableField("amount")
    private BigDecimal amount;
    /**
     * 成本价格
      */
    @TableField("cost_price")
    private BigDecimal costPrice;
    /**
     * 状态
     */
    @TableField("status")
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private LocalDateTime createDate;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField("is_delete")
    private Integer isDelete;


}
